var tmp = `
<%var SubPrefix="sub__"%>
<%var ctlTypes = ['rx-textarea', 'rx-group', 'rx-user', 'rx-upload', 'rx-quill-editor', 'rx-radio','rx-form-signbox', 'rx-image','rx-address', 'rx-button-edit', 'rx-map', 'rx-checkbox-list', 'rx-date-range', 'rx-tree-select','rx-relate-process']%>
<div style="margin-bottom: .5rem;" v-if="fieldShow('','<%=subTable.alias%>')">
    <template v-if="data.<%=SubPrefix%><%=subTable.alias%> && data.<%=SubPrefix%><%=subTable.alias%>.length">
        <template v-for="(item,index) in data.<%=SubPrefix%><%=subTable.alias%>">
            <div class="rx--table-block-pattern rx-attrs-field" :class="putAway.includes(index)?'rx-table-pick-up':'anmDiv'">
                <div class="rx-table-block-head" >
                    <div class="form-chunk-heard">
                    <i class="iconfont icon-activity"></i><%=subTable.name%>-{{ index + 1 }}
                    </div>
                    <div v-if="!putAway.includes(index)" @click="storeAway(index)" class="rx-table-block-head-button">
                    <i class="iconfont icon-unfold"></i>
                    </div>
                    <div v-if="putAway.includes(index)" @click="storePackup(index)" class="rx-table-block-head-button">
                    <i class="iconfont icon-packup"></i>
                    </div>
                    <div v-if="!readonly&&subPermission('<%=subTable.alias%>','remove')" @click="remove('<%=subTable.alias%>',index)" style="color: rgb(255, 98, 98);border: 1px solid rgb(255, 98, 98);" class="rx-table-block-head-button">
                    <i class="iconfont icon-trash"></i>
                    </div>
                </div>
               <% for(var i=0;i<subTable.boAttrList.length;i++){
                     var boAttr=subTable.boAttrList[i];
                     if(boAttr.group&& !boAttr.show){%>
                        <div class="attrs-apply">
                        <div class="attrs-heard"><%=boAttr.name%></div>
                        <% for(var j=0;j<boAttr.list.length;j++){
                            var attr=boAttr.list[j];
                        %>
                        <div class="<%if(attr.break || ctlTypes.includes(attr.control)){%> rx-fieid fieid-line <%} else {%>rx-fieid<%}%>" >
                              <div>
                                <rx-valid :readonly="readonly" :metadata="metadata" subname="<%=subTable.alias%>" :row="item" :data="data" :attrList="attrList"  attrAlias="<%=attr.name%>"/>
                              </div>
                              
                               <div class="<%if(attr.break){%> fieid-line-group <%} else {%>fieid-group single_input<%}%>" >
                                <<%=attr.control%> v-model="item.<%=boAttr.name%>" :attrList="attrList" :permission="permission" :metadata="metadata" subname="<%=subTable.alias%>"
                                          :row="item" :readonly="readonly" :data="data" attrAlias="<%=attr.name%>" />
                              </div>
                              <div class="fieid-readonly" v-if="!readonly && validVtype('<%=attr.name%>','<%=subTable.alias%>')&&!validVtype('<%=attr.name%>','<%=subTable.alias%>').success">
                                {{validVtype('<%=attr.name%>','<%=subTable.alias%>').msg}}
                              </div>
                        </div>
                        <%}%>
                       </div>
                    <%}else{%>
                    <div v-if="fieldShow('<%=boAttr.name%>','<%=subTable.alias%>')" class="<%if(boAttr.break || ctlTypes.includes(boAttr.control)){%> rx-fieid fieid-line <%} else {%>rx-fieid<%}%>" >
                          <div>
                            <rx-valid :readonly="readonly" :metadata="metadata" subname="<%=subTable.alias%>" :row="item" :data="data" :attrList="attrList"  attrAlias="<%=boAttr.name%>"/>
                          </div>
                          
                           <div class="<%if(boAttr.break){%> fieid-line-group <%} else {%>fieid-group single_input<%}%>" >
                            <<%=boAttr.control%> v-model="item.<%=boAttr.name%>" :attrList="attrList" :permission="permission" :metadata="metadata" subname="<%=subTable.alias%>"
                                      :readonly="readonly" :data="data" :row="item" attrAlias="<%=boAttr.name%>" />
                          </div>
                          <div class="fieid-readonly" v-if="!readonly && validVtype('<%=boAttr.name%>','<%=type%>')&&!validVtype('<%=boAttr.name%>','<%=type%>').success">
                            {{validVtype('<%=boAttr.name%>','<%=subTable.alias%>').msg}}
                          </div>
                    </div>
                    <%}%>
                <%}%> 
            </div>
        </template>
    </template>
    <div v-else class="empty">
      <i style="font-size: 2rem;color: #434d53" class="iconfont icon-kongxian"></i>
      <div style="font-size: .7rem;color: #434d53"><%=subTable.name%>暂无数据</div>
    </div>
    <div v-if="!readonly&&subPermission('<%=subTable.alias%>','add')" class="form-button-add">
    <div class="DataList-list-button">
          <div @click="add('<%=subTable.alias%>')"><i class="iconfont icon-add"></i>新增</div>
          <div @click="customButton(obj)" v-for="obj in tableButtonDef['<%=subTable.alias%>']" v-if="tableButtonDef['<%=subTable.alias%>']">{{obj.name}}</div>
      </div>
    </div>
</div>
`

export default tmp;